.class final Lcom/melesta/engine/EngineActivity$5;
.super Ljava/lang/Object;
.source "EngineActivity.java"

# interfaces
.implements Lcom/tapjoy/TapjoyNotifier;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/melesta/engine/EngineActivity;->tapjoyRefreshEarnedCurrency()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x8
    name = null
.end annotation


# instance fields
.field final synthetic val$tapjoy:Lcom/tapjoy/TapjoyConnect;


# direct methods
.method constructor <init>(Lcom/tapjoy/TapjoyConnect;)V
    .locals 0
    .parameter

    .prologue
    .line 1056
    iput-object p1, p0, Lcom/melesta/engine/EngineActivity$5;->val$tapjoy:Lcom/tapjoy/TapjoyConnect;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public getUpdatePoints(Ljava/lang/String;I)V
    .locals 6
    .parameter "currencyName"
    .parameter "pointTotal"

    .prologue
    const/4 v5, 0x0

    .line 1071
    :try_start_0
    iget-object v1, p0, Lcom/melesta/engine/EngineActivity$5;->val$tapjoy:Lcom/tapjoy/TapjoyConnect;

    #calls: Lcom/melesta/engine/EngineActivity;->tapjoyProcessEarnedPoints(Lcom/tapjoy/TapjoyConnect;I)V
    invoke-static {v1, p2}, Lcom/melesta/engine/EngineActivity;->access$400(Lcom/tapjoy/TapjoyConnect;I)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 1075
    :goto_0
    invoke-static {v5}, Lcom/melesta/engine/EngineActivity;->access$302(Z)Z

    .line 1076
    return-void

    .line 1072
    :catch_0
    move-exception v0

    .line 1073
    .local v0, exc:Ljava/lang/Exception;
    const-string v1, "getUpdatePoints(%s, %d)"

    const/4 v2, 0x2

    new-array v2, v2, [Ljava/lang/Object;

    aput-object p1, v2, v5

    const/4 v3, 0x1

    invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    aput-object v4, v2, v3

    invoke-static {v1, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1, v0}, Lcom/melesta/engine/Error;->processException(Ljava/lang/String;Ljava/lang/Exception;)V

    goto :goto_0
.end method

.method public getUpdatePointsFailed(Ljava/lang/String;)V
    .locals 5
    .parameter "error"

    .prologue
    const/4 v4, 0x0

    .line 1061
    :try_start_0
    const-string v1, "engine"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "[TapjoyDelegate] getUpdatePointsFailed: "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Lcom/melesta/engine/Log;->d(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 1065
    :goto_0
    invoke-static {v4}, Lcom/melesta/engine/EngineActivity;->access$302(Z)Z

    .line 1066
    return-void

    .line 1062
    :catch_0
    move-exception v0

    .line 1063
    .local v0, exc:Ljava/lang/Exception;
    const-string v1, "getUpdatePointsFailed(%s)"

    const/4 v2, 0x1

    new-array v2, v2, [Ljava/lang/Object;

    aput-object p1, v2, v4

    invoke-static {v1, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1, v0}, Lcom/melesta/engine/Error;->processException(Ljava/lang/String;Ljava/lang/Exception;)V

    goto :goto_0
.end method
